# import matplotlib.pyplot as plt
#
# x = [1, 2, 3, 4, 5]
# y = [1, 4, 9, 16, 25]
#
# plt.figure()
# plt.plot(x, y, label='Square Number')
# plt.title('simplePlot')
# plt.xlabel('x')
# plt.ylabel('y')
#
# plt.legend()
# plt.show()
import matplotlib
matplotlib.use('TkAgg')  # 或者 'Qt5Agg'
import matplotlib.pyplot as plt

x = [1, 2, 3, 4, 5]
y = [1, 4, 9, 16, 25]

plt.figure()
plt.plot(x, y, label='Square Number')
plt.title('simplePlot')
plt.xlabel('x')
plt.ylabel('y')

plt.legend()
plt.show()
